<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Dynamic load Js By required.js</title>
<script data-main="mainDefer" src="require_2.1.11.min.js"></script>

<script type="text/javascript">
	function test() {
		require(["moduleA"], function(util) {
			alert('a1:' + a1);
			alert('a2:' + a2);
		});
	}
</script>
</head>
<body>
	<input type="button" value="require" onclick="test()"></input>
</body>
</html>